package com.sky.mapper;

import com.sky.entity.ShoppingCart;
import com.sky.vo.ShoppingCartVO;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ShoppingCartMapper {
     ShoppingCart selectByDishIdOrSetmealId(Long userId, Long dishId, Long setmealId);


    void insert(ShoppingCart shoppingCart1);

    void update(ShoppingCart shoppingCart1);
@Select("select * from shopping_cart where user_id=#{currentId}")
    List<ShoppingCartVO> seleteByUserId(Long currentId);
@Delete("delete from shopping_cart where user_id=#{currentId}")
    void clean(Long currentId);
}
